home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Include / allobjects.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-28  |  3.2 KB  |  117 lines  |  [TEXT/CWIE]

  1. #ifndef Py_ALLOBJECTS_H
  2. #define Py_ALLOBJECTS_H
  3. /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
  4.  
  5. /***********************************************************
  6. Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  7. The Netherlands.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its
  12. documentation for any purpose and without fee is hereby granted,
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in
  15. supporting documentation, and that the names of Stichting Mathematisch
  16. Centrum or CWI or Corporation for National Research Initiatives or
  17. CNRI not be used in advertising or publicity pertaining to
  18. distribution of the software without specific, written prior
  19. permission.
  20.  
  21. While CWI is the initial source for this software, a modified version
  22. is made available by the Corporation for National Research Initiatives
  23. (CNRI) at the Internet address ftp://ftp.python.org.
  24.  
  25. STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
  26. REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  27. MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
  28. CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  29. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  30. PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  31. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  32. PERFORMANCE OF THIS SOFTWARE.
  33.  
  34. ******************************************************************/
  35.  
  36. /* Include nearly all Python header files */
  37.  
  38. #include "config.h"
  39.  
  40. /* config.h may or may not define DL_IMPORT */
  41. #ifndef DL_IMPORT    /* declarations for DLL import/export */
  42. #define DL_IMPORT(RTYPE) RTYPE
  43. #endif
  44.  
  45. #ifdef SYMANTEC__CFM68K__
  46. #define UsingSharedLibs
  47. #endif
  48.  
  49. #include <stdio.h>
  50. #include <string.h>
  51. #include <errno.h>
  52. #ifdef HAVE_STDLIB_H
  53. #include <stdlib.h>
  54. #endif
  55.  
  56. #include "myproto.h"
  57.  
  58. #ifdef SYMANTEC__CFM68K__
  59. #pragma lib_export on
  60. #endif
  61.  
  62. #include "object.h"
  63. #include "objimpl.h"
  64.  
  65. #include "pydebug.h"
  66.  
  67. #include "accessobject.h"
  68. #include "intobject.h"
  69. #include "longobject.h"
  70. #include "floatobject.h"
  71. #ifndef WITHOUT_COMPLEX
  72. #include "complexobject.h"
  73. #endif
  74. #include "rangeobject.h"
  75. #include "stringobject.h"
  76. #include "tupleobject.h"
  77. #include "listobject.h"
  78. #include "mappingobject.h"
  79. #include "methodobject.h"
  80. #include "moduleobject.h"
  81. #include "funcobject.h"
  82. #include "classobject.h"
  83. #include "fileobject.h"
  84. #include "cobject.h"
  85. #include "traceback.h"
  86. #include "sliceobject.h"
  87.  
  88. #include "pyerrors.h"
  89. #include "mymalloc.h"
  90.  
  91. #include "modsupport.h"
  92. #include "ceval.h"
  93. #include "pythonrun.h"
  94. #include "sysmodule.h"
  95. #include "intrcheck.h"
  96. #include "import.h"
  97. #include "bltinmodule.h"
  98.  
  99. #include "abstract.h"
  100.  
  101. #define PyArg_GetInt(v, a)    PyArg_Parse((v), "i", (a))
  102. #define PyArg_NoArgs(v)        PyArg_Parse(v, "")
  103.  
  104. /* Convert a possibly signed character to a nonnegative int */
  105. /* XXX This assumes characters are 8 bits wide */
  106. #ifdef __CHAR_UNSIGNED__
  107. #define Py_CHARMASK(c)        (c)
  108. #else
  109. #define Py_CHARMASK(c)        ((c) & 0xff)
  110. #endif
  111.  
  112. #ifndef Py_USE_NEW_NAMES
  113. #include "rename2.h"
  114. #endif
  115.  
  116. #endif /* !Py_ALLOBJECTS_H */
  117.